//This file is added by lcl at 2012-09-10
package com.shengyin.ec.service.alliance;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shengyin.ec.model.dao.alliance.AllianceSDInfoDao;
import com.shengyin.ec.model.entity.AllianceSDInfo;

@Service("allianceSDInfoService")
public class AllianceSDInfoServiceImpl implements AllianceSDInfoService {
	
	@Autowired
	AllianceSDInfoDao allianceSDInfoDao;

	@Override
	public AllianceSDInfo getAllianceSDInfoById(long id) {
		return allianceSDInfoDao.getAllianceSDInfoById(id);
	}
	
	@Override
	public List<AllianceSDInfo> getAllianceSDInfoListByCompanyId(long companyId){
		return allianceSDInfoDao.getAllianceSDInfoListByCompanyId(companyId);
	}
	
	@Override
	public List<AllianceSDInfo> getAllianceDemandInfoListByCompanyId(long companyId){
		return allianceSDInfoDao.getAllianceDemandInfoListByCompanyId(companyId);
	}
	
	@Override
	public List<AllianceSDInfo> getAllInfoListByCompanyId(long companyId){
		return allianceSDInfoDao.getAllInfoListByCompanyId(companyId);
	}
	
	@Override
	public void createSDInfo(AllianceSDInfo allianceSDInfo){
		allianceSDInfoDao.save(allianceSDInfo);
	}
	
	@Override
	public List<AllianceSDInfo> getSupplyInfoListByTime(long companyId){
		return allianceSDInfoDao.getSupplyInfoListByTime(companyId);
	}
	
	@Override
	public List<AllianceSDInfo> getSupplyInfoListByCompany(long companyId){
		return allianceSDInfoDao.getSupplyInfoListByCompany(companyId);
	}
	
	@Override
	public List<AllianceSDInfo> getAllSupplyInfoListByTime(){
		return allianceSDInfoDao.getAllSupplyInfoListByTime();
	}
	
	@Override
	public List<AllianceSDInfo> getSupplyInfoListByCompanyType(){
		return allianceSDInfoDao.getSupplyInfoListByCompanyType();
	}
	
	@Override
	public List<AllianceSDInfo> getAllSupplyInfoList(){
		return allianceSDInfoDao.getAllSupplyInfoList();
	}
	
	@Override
	public List<AllianceSDInfo> getDemandInfoListByTime(long companyId){
		return allianceSDInfoDao.getDemandInfoListByTime(companyId);
	}
	
	@Override
	public List<AllianceSDInfo> getAllDemandInfoListByTime(){
		return allianceSDInfoDao.getAllDemandInfoListByTime();
	}
	
	@Override
	public List<AllianceSDInfo> getAllDemandInfoList(){
		return allianceSDInfoDao.getAllDemandInfoList();
	}
}